<?php

namespace App\Services;

class WechatService
{
    public function recordLocation($payload)
    {
        $text = $payload['Label'];

        \Log::info('收到位置信息: '.$text);

        return '位置记录成功: '.$text;
    }

    public function quickReg($payload)
    {
        return '注册失败：您的微信号'.$payload['FromUserName'].'已注册';
    }

    public function scanResult($payload)
    {
        return array_get($payload, 'ScanCodeInfo.ScanResult');
    }
}
